<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>速度曲线步长</title>
  <style>
    div {
      width: 0;
      height: 22px;
      font-size: 20px;
      background-color: pink;

      /* 强制一行显示 */
      white-space: nowrap;

      overflow: hidden;

      /* steps: 步长 将整个动画分为几步走完 */
      animation: w 4s forwards steps(10);
    }

    @keyframes w {
      0% {
        width: 0;
      }

      100% {
        width: 200px;
      }
    }
  </style>
</head>

<body>

  <div>世纪佳缘我在这等你</div>

</body>

</html>